package com.wzq.service.impl;

import com.wzq.dao.dto.MemberDto;
import com.wzq.dao.pojo.Member;
import com.wzq.mapper.Membermapper;
import com.wzq.service.IMemberService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author yzc
 * @since 2022-08-31
 */
@Service
public class MemberServiceImpl extends ServiceImpl<Membermapper, Member> implements IMemberService {
            @Autowired
            private Membermapper membermapper;

    //根据项目ID查询该项目下的成员信息
    @Override
    public List<MemberDto> SelectMenberByPid(Integer p_id) {
        return membermapper.SelectMenberByPid(p_id);
    }

    @Override
    public int AddmMember(String w_id , String p_id) {
        return membermapper.AddmMember(w_id , p_id);
    }

}
